#include <iostream>
#include <cmath>
using namespace std;

int main() {
    int n;
    cin >> n;
    if (n == 0)
    {
        cout << 0;
        return 0;
    }
    
    if (n < 0)
    {
        n = abs(n);
        cout << "-";
    }

    int temp=0,flag=0;
    while (n != 0)
    {   
        temp = n % 10;
        if (temp != 0)
        {
            flag = 1;
        }
        if (flag == 1)
        {
            cout << temp;
        }
        n = n / 10;
    }
    
    return 0;
}